﻿using System;
using System.Collections.Generic;
using System.Text;
using Pay.TO;

namespace Pay.DTO {
	/// <summary>
	/// 专题
	/// </summary>
	[Serializable]
	public class topic_dto {
		public topic_dto() {
			topic_groups = new List<topic_group_dto>();
		}
		/// <summary>
		/// 专题id
		/// </summary>
		public long id { get; set; }
		/// <summary>
		/// 专题标题
		/// </summary>
		public string title { get; set; }
		/// <summary>
		/// 商户id
		/// </summary>
		public long merchant_id { get; set; }
		/// <summary>
		/// 展示图片
		/// </summary>
		public string show_images { get; set; }
		/// <summary>
		/// 展示方式
		/// </summary>
		public int show_type { get; set; }
		/// <summary>
		/// 轮播图片
		/// </summary>
		public string banner { get; set; }
		/// <summary>
		/// 专题页显示类型：1默认app 2待定
		/// </summary>
		public int page_type { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime create_time { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		public string remark { get; set; }
		/// <summary>
		/// 商户
		/// </summary>
		public merchant_dto merchant { get; set; }
		/// <summary>
		/// 分组
		/// </summary>
		public List<topic_group_dto> topic_groups { get; set; }
	}

	/// <summary>
	/// 专题
	/// </summary>
	[Serializable]
	public class topic_model : head_req {
		public topic_model() {
		}
		/// <summary>
		/// 专题id
		/// </summary>
		public long id { get; set; }
		/// <summary>
		/// 专题标题
		/// </summary>
		public string title { get; set; }
		/// <summary>
		/// 展示图片
		/// </summary>
		public string show_images { get; set; }
		/// <summary>
		/// 展示方式
		/// </summary>
		public int show_type { get; set; }
		/// <summary>
		/// 专题页显示类型：1默认app 2待定
		/// </summary>
		public int page_type { get; set; }
		/// <summary>
		/// 轮播图片
		/// </summary>
		public string banner { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime create_time { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		public string remark { get; set; }
		/// <summary>
		/// 分组
		/// </summary>
		public List<topic_group_dto> topic_groups { get; set; }
	}

	/// <summary>
	/// 主页的专题列表
	/// </summary>
	[Serializable]
	public class topic_list {
		public topic_list() {
			goods = new List<product_dto>();
		}
		/// <summary>
		/// 专题id
		/// </summary>
		public long id { get; set; }
		/// <summary>
		/// 专题标题
		/// </summary>
		public string title { get; set; }
		/// <summary>
		/// 展示图片
		/// </summary>
		public string show_images { get; set; }
		/// <summary>
		/// 展示方式
		/// </summary>
		public int show_type { get; set; }
		/// <summary>
		/// 专题页显示类型：1默认app 2待定
		/// </summary>
		public int page_type { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		public string remark { get; set; }
		/// <summary>
		/// 商品集合
		/// </summary>
		public List<product_dto> goods { get; set; }
	}
}
